package com.yanglei.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Service
@FeignClient(value = "cloud-provider-hystrix-payment")
public interface HystrixOrderService {

    @GetMapping("/ok/{id}")
    public String paymentInfo_ok(@PathVariable("id") String id);

    @GetMapping("/no/{id}")
    public String paymentInfo_No(@PathVariable("id") String id) throws InterruptedException;
}
